package test01;

/**
 * @Author lzp
 * @Date 2024-04-01
 */
public class tset {
    public static void main(String[] args) {
        //实例化数组
        Integer[] intArr = {1,2,3};

        //实例化
        GeneriTest01<Integer> gt = new GeneriTest01<>();
        gt.setArr(intArr);

        for (Integer i : gt.getArr()) {
            System.out.println(i);
        }


        GeneriTest02<Integer> gtt = new GeneriTest02<>(Integer.class,3);
        Integer[] arr = gtt.getArr();
        arr[0] = 11 ;
        arr[1] = 22 ;
        arr[2] = 33 ;

        for (Integer data : arr) {
            System.out.println(data);
        }
    }
}
